import React from 'react';
import { Modal } from 'antd';
import Preview from '../../../../light-render/desktop';

export default class PreviewModal extends React.Component {
  render() {
    const { value = {}, onClose, visible } = this.props;
    return (
      <Modal
        bodyStyle={{ height: '90vh' }}
        width="70vw"
        footer={null}
        onCancel={onClose}
        visible={visible}
      >
        <Preview value={value} />
      </Modal>
    );
  }
}
